package foodmaterial.service;

import foodmaterial.dto.PurchaseBillDto;
import foodmaterial.dto.PurchasePlanDto;
import foodmaterial.dto.PurchaseSummaryDto;
import foodmaterial.dto.SupplierDto;
import foodmaterial.entity.PurchaseBill;
import foodmaterial.entity.PurchaseBillDetails;
import foodmaterial.entity.PurchaseBillTrack;
import foodmaterial.entity.Supplier;

import java.util.List;

public interface PurchaseService {
    int addSupplier(Supplier supplier) ;
    int modifySupplier(Supplier supplier) ;
    Supplier querySupplierById(SupplierDto dto) ;
    List<Supplier> querySuppliers(SupplierDto dto) ;

    int addPurchaseBill(PurchaseBill purchaseBill) ;

    int modifyPurchaseBill(PurchaseBill purchaseBill) ;

    List<PurchaseBill> queryPurchaseBill(PurchaseBillDto dto) ;

    List<PurchaseBillDetails> queryPurchaseBillDetails(Long purchaseBillId) ;

    PurchaseBill queryPurchaseBillById(Long id) ;

    List<PurchaseBill> queryPrintPurchaseBill(List<Long> ids) ;

    List<PurchaseBillDetails> queryPlan(PurchasePlanDto dto) ;

    List<PurchaseBillDetails> queryPurchaseSummary(PurchaseSummaryDto dto) ;

    Double queryPurchaseSummaryTotalMoney(PurchaseSummaryDto dto) ;

    String truncateSupplier() ;

}
